package gui.view.android.graphics.factories;

import gui.view.android.graphics.JavaRect;

import com.nightpiter.view.graphics.Rect;
import com.nightpiter.view.graphics.abstaractions.AbstractRect;
import com.nightpiter.view.graphics.factories.RectFactory;

public class JavaRectFactory extends RectFactory {

	@Override
	public AbstractRect create() {
		return new JavaRect();
	}

	@Override
	public AbstractRect create(Rect rect) {
		return new JavaRect((JavaRect) rect.getDelegate());
	}

	@Override
	public AbstractRect create(int left, int top, int right, int bottom) {
		return new JavaRect(left, right, bottom, top);
	}

}
